#ifndef BGRIDWIDGET_H
#define BGRIDWIDGET_H

#include <QWidget>
#include <QPen>

class BGridWidget: public QWidget
{
    Q_OBJECT
public:
    explicit BGridWidget(QWidget *parent = nullptr);
    void setGridColor(const QColor &color);
    void setGridSpacing(int spacing);
protected:
    void paintEvent(QPaintEvent *event) override;

private:
    QPen m_pen;
    int m_spacing = 20;
};

#endif // BGRIDWIDGET_H
